import Mock from 'mockjs'
import data from './data.json'

const searchShops=[
    {
        imgUrl:"https://gd1.alicdn.com/imgextra/i4/0/O1CN01k4BI9d2ABA2JOO5hO_!!0-item_pic.jpg",
        name:"aa",
        count:68,
        deliveryPrice: 20,
        distance:3.6
    },
    {
        imgUrl:"https://gd2.alicdn.com/imgextra/i2/2652541434/O1CN011MSoQU3sLquDWRy_!!2652541434.jpg",
        name:"bb",
        count:108,
        deliveryPrice: 22,
        distance:0.8
    }
];

//返回goods的接口
Mock.mock('/goods',{code:0,goods:data.goods});

//返回info接口
Mock.mock('/info',{code:0,info:data.info});

//返回rating接口
Mock.mock('/ratings',{code:0,ratings:data.ratings});

//自己定制/search_shops的结构
Mock.mock("/search_shops",{code:0,data:searchShops});
